package com.caesar.exer1;

/**
 * @author caesar
 * @date 2025/7/21
 * @Description:共享计数器
 * @apiNote
 */
public class Counter {
    private  int  count;
    public synchronized void increment(){
        count++;

    }

    public int getCount() {
        return count;
    }
}
